package com.yunhe.webmvc.model;

import java.lang.reflect.Method;
import java.lang.reflect.Parameter;

/**
 * 创建人：田轩
 * 创建时间：2017/10/10
 * 描述： 封装Action信息
 */
public class ActionModel {
    private Method method;    //方法名
    private Object action;   //Controller对象
    Parameter[] parameters;  //方法的形参

    public ActionModel(){}

    public ActionModel(Method method, Object action, Parameter[] parameters) {
        this.method = method;
        this.action = action;
        this.parameters = parameters;
    }

    public Method getMethod() {
        return method;
    }

    public void setMethod(Method method) {
        this.method = method;
    }

    public Object getAction() {
        return action;
    }

    public void setAction(Object action) {
        this.action = action;
    }

    public Parameter[] getParameters() {
        return parameters;
    }

    public void setParameters(Parameter[] parameters) {
        this.parameters = parameters;
    }
}
